<%@ taglib prefix="s" uri="/struts-tags"%>
<link rel="stylesheet" type="text/css" href="<s:url value='/CSS/pagination.css'/>"/>
<div class="pagination">
  Current Page:<span class="pagination-span"><s:property value="pagination.pageNo"/></span>
  Pages:<span class="pagination-span"><s:property value="pagination.lastPageNo"/></span>&nbsp;&nbsp;
  <s:if test="pagination.pageNo > 1">
    <a href="${first}"><span class="pagination-span">First Page</span></a>
  </s:if>
  <s:else>
    <span class="pagination-span">First Page</span>
  </s:else>
  &nbsp;
  <s:if test="pagination.pageNo > 1">
    <a href="${previous}"><span class="pagination-span">Previous Page</span></a> 
  </s:if>
  <s:else>
    <span class="pagination-span">Previous Page</span>
  </s:else>
  &nbsp;
  <s:if test="pagination.pageNo < pagination.lastPageNo">
    <a href="${next}"><span class="pagination-span">Next Page</span></a>
  </s:if> 
  <s:else>
   <span class="pagination-span">Next Page</span>
  </s:else>
  &nbsp;
  <s:if test="pagination.pageNo < pagination.lastPageNo">
    <a href="${last}"><span class="pagination-span">Last Page</span></a>
  </s:if>
  <s:else>
    <span class="pagination-span">Last Page</span>
  </s:else> 
</div>